home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / rdf / nsIRDFInferDataSource.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  113 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIRDFInferDataSource.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIRDFInferDataSource_h__
  6. #define __gen_nsIRDFInferDataSource_h__
  7.  
  8.  
  9. #ifndef __gen_nsIRDFDataSource_h__
  10. #include "nsIRDFDataSource.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIRDFInferDataSource */
  19. #define NS_IRDFINFERDATASOURCE_IID_STR "2b04860f-4017-40f6-8a57-784a1e35077a"
  20.  
  21. #define NS_IRDFINFERDATASOURCE_IID \
  22.   {0x2b04860f, 0x4017, 0x40f6, \
  23.     { 0x8a, 0x57, 0x78, 0x4a, 0x1e, 0x35, 0x07, 0x7a }}
  24.  
  25. /**
  26.  * An nsIRDFInferDataSource is implemented by a infer engine. This
  27.  * engine mimics assertions in addition to those in the baseDataSource
  28.  * according to a particular vocabulary.
  29.  * Infer engines have contract IDs in the form of
  30.  * "@mozilla.org/rdf/infer-datasource;1?engine="
  31.  */
  32. class NS_NO_VTABLE nsIRDFInferDataSource : public nsIRDFDataSource {
  33.  public: 
  34.  
  35.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IRDFINFERDATASOURCE_IID)
  36.  
  37.   /**
  38.      *
  39.      * The wrapped datasource.
  40.      *
  41.      * The InferDataSource contains all arcs from the wrapped
  42.      * datasource plus those infered by the vocabulary implemented
  43.      * by the InferDataSource.
  44.      */
  45.   /* attribute nsIRDFDataSource baseDataSource; */
  46.   NS_IMETHOD GetBaseDataSource(nsIRDFDataSource * *aBaseDataSource) = 0;
  47.   NS_IMETHOD SetBaseDataSource(nsIRDFDataSource * aBaseDataSource) = 0;
  48.  
  49. };
  50.  
  51. /* Use this macro when declaring classes that implement this interface. */
  52. #define NS_DECL_NSIRDFINFERDATASOURCE \
  53.   NS_IMETHOD GetBaseDataSource(nsIRDFDataSource * *aBaseDataSource); \
  54.   NS_IMETHOD SetBaseDataSource(nsIRDFDataSource * aBaseDataSource); 
  55.  
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  57. #define NS_FORWARD_NSIRDFINFERDATASOURCE(_to) \
  58.   NS_IMETHOD GetBaseDataSource(nsIRDFDataSource * *aBaseDataSource) { return _to GetBaseDataSource(aBaseDataSource); } \
  59.   NS_IMETHOD SetBaseDataSource(nsIRDFDataSource * aBaseDataSource) { return _to SetBaseDataSource(aBaseDataSource); } 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  62. #define NS_FORWARD_SAFE_NSIRDFINFERDATASOURCE(_to) \
  63.   NS_IMETHOD GetBaseDataSource(nsIRDFDataSource * *aBaseDataSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBaseDataSource(aBaseDataSource); } \
  64.   NS_IMETHOD SetBaseDataSource(nsIRDFDataSource * aBaseDataSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBaseDataSource(aBaseDataSource); } 
  65.  
  66. #if 0
  67. /* Use the code below as a template for the implementation class for this interface. */
  68.  
  69. /* Header file */
  70. class nsRDFInferDataSource : public nsIRDFInferDataSource
  71. {
  72. public:
  73.   NS_DECL_ISUPPORTS
  74.   NS_DECL_NSIRDFINFERDATASOURCE
  75.  
  76.   nsRDFInferDataSource();
  77.  
  78. private:
  79.   ~nsRDFInferDataSource();
  80.  
  81. protected:
  82.   /* additional members */
  83. };
  84.  
  85. /* Implementation file */
  86. NS_IMPL_ISUPPORTS1(nsRDFInferDataSource, nsIRDFInferDataSource)
  87.  
  88. nsRDFInferDataSource::nsRDFInferDataSource()
  89. {
  90.   /* member initializers and constructor code */
  91. }
  92.  
  93. nsRDFInferDataSource::~nsRDFInferDataSource()
  94. {
  95.   /* destructor code */
  96. }
  97.  
  98. /* attribute nsIRDFDataSource baseDataSource; */
  99. NS_IMETHODIMP nsRDFInferDataSource::GetBaseDataSource(nsIRDFDataSource * *aBaseDataSource)
  100. {
  101.     return NS_ERROR_NOT_IMPLEMENTED;
  102. }
  103. NS_IMETHODIMP nsRDFInferDataSource::SetBaseDataSource(nsIRDFDataSource * aBaseDataSource)
  104. {
  105.     return NS_ERROR_NOT_IMPLEMENTED;
  106. }
  107.  
  108. /* End of implementation class template. */
  109. #endif
  110.  
  111.  
  112. #endif /* __gen_nsIRDFInferDataSource_h__ */
  113.